package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class HpSynthesisJudicatureRowMapper implements RowMapper<HpSynthesisJudicature> {
    @Override
    public HpSynthesisJudicature mapRow(ResultSet rs, int rowNum) throws SQLException {
        HpSynthesisJudicature hp=new HpSynthesisJudicature();
        hp.setAdress(rs.getString("adress"));
        hp.setJudicature(rs.getString("judicature"));
        hp.setNumber(rs.getString("number"));
        hp.setPhone(rs.getString("phone"));
        hp.setStatus(rs.getString("status"));
        return hp;
    }
}
